Parameters
- byteArray
- The value expressed as array of bytes.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - sizeInBits
- Size in bits of the resulting value.
The value of this parameter cannot be null
(Nothing
in Visual Basic).
The value of this parameter cannot be null
(Nothing
in Visual Basic).
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | The value of an argument is outside the allowable range of values as defined by the invoked method. This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception. |
The sizeInBits must be equal to or less than the number of bits in the byteArray (the length of the byte array times 8).
Note that the byte array value is only synchronized with the bit array after the bit array has been set to a different object.